// 座位--持久层
var mongoose = require('mongoose');

const addData= async(data)=>{//添加座位数据
    data.seat=`${data.row}排${data.col}座`;
    return await mongoose.model('seats').insertMany(data);
}

module.exports = {addData}